import express from 'express'
import sqlQuery from '../utils/sql';
const router = express.Router()
router.get('/getPtype',async (request,reponese)=>{
    let res = await sqlQuery(`select * from ptype`)
    reponese.send(res)
})
router.get('/getUtype',async (request,reponese)=>{
    let res = await sqlQuery(`select * from utype`)
    reponese.send(res)
})
//查看points_mall
router.get('/getPoints',async (request,reponese)=>{
    let res = await sqlQuery(`select * from points_mall`)
    reponese.send(res)
})
module.exports = router 